import Vue from 'vue'
import VueRouter from 'vue-router'

//导入组件,配置路由规则
import Login from "../views/login/Login.vue"
import Register from "../views/register/Register.vue"

Vue.use(VueRouter)

const routes = []

const router = new VueRouter({
  routes: [{

      path: "/",
      // name: Login,
      component: Login
    },
    {

      path: "/register",
      // name: Register,
      component: Register
    },
  ]


})

export default router
